package com.zhj.rabbitmq.com.result;


/**
 * 通用错误信息返回常量类
 */
public class CommonResponse {


    public interface SystemResp {
        Response BUSS_SUCC = new Response("操作成功", 0, 1);

        Response BUSS_ERROR = new Response("系统繁忙,请稍后再试", 1, 1);

        Response UNKNOWN_ERROR = new Response("未知错误", 2, 1);

        Response PARAMS_ERROR = new Response("参数错误,请修改后重试", 3, 1);

        Response BUSS_HANDLER = new Response("业务正在处理", 4, 1);

        Response QUERY_ERROR = new Response("查询失败,请重试！", 5, 1);

        Response OP_BUSS_ERROR = new Response("操作失败", 6, 1);

        Response EXPORT_DATE_NULL_ERROR = new Response("数据为空，不能导出！", 7, 1);

        Response DATA_IS_NULL = new Response("数据为空,请重试", 8, 1);

        Response ACCOUT_OR_PASSWORD_ERROR = new Response("账号或密码错误，请重试！", 9, 1);

        Response UPDATE_ERROR = new Response("修改失败，请重试", 10, 1);

        Response DELETE_ERROR = new Response("删除失败，请重试", 11, 1);

        Response ADD_ERROR = new Response("添加失败，请重试", 12, 1);

        Response SELECT_ERROR = new Response("查询失败，请重试", 13, 1);

        Response SMS_ERROR = new Response("短信发送，请重试", 14, 1);
    }



    // ------------------------------------------- 商家模块 返回信息 ------------------------------
    public interface StoreResp {

        Response UPDATE_WITHDRAWAL_ERROR = new Response("您还有未提现余额,请将余额提现完后再进行账号变更",101,1);

        Response WITHDRAWAL_PASSWORD_NULL = new Response("提现密码为空,请先设置提现密码",102,1);

        Response WITHDRAWAL_PASSWORD_ERROR = new Response("提现密码错误,请重新输入",103,1);

        Response WITHDRAWAL_USER_ERROR = new Response("提现未进行身份认证,请先认证",104,1);

        Response WITHDRAWAL_BALANCE_ERROR = new Response("余额不足，请重试",105,1);

        Response WITHDRAWAL_BALANCE_ONE_ERROR = new Response("提现金额应大于最小提现金额1元",105,1);

        Response WITHDRAWAL_MONEY_ERROR = new Response("提现金额有误，请重试",106,1);

        Response WITHDRAWAL_LIST_ERROR = new Response("提现账户异常，请联系平台工作人员",107,1);

        Response WITHDRAWAL_RULE_ERROR = new Response("不满足提现规则，请重试",107,1);

        Response WITHDRAWAL_FLOW_ERROR = new Response("提现流水异常，请重试",108,1);

        Response WITHDRAWAL_PAY_ERROR = new Response("提现支付失败，请重试",109,1);

        Response WITHDRAWAL_WITHDRAWAL_FAIL = new Response("提现失败,提现流程结束",110,1);

        Response WITHDRAWAL_FAIL = new Response("提现失败,请重试",111,1);
    }

    // ------------------------------------------- 消息模块 返回信息 ------------------------------
    public interface MsgResp {
        Response RELEASE_EORROR = new Response("消息已发布不能修改",201,1);

        Response CHANNEL_EORROR = new Response("当前所选的渠道商集合为空，请重试",202,1);
    }


    // ------------------------------------------- 兑换模块 返回信息 ---------------------------------
    public interface ExchangeResp {
        Response CHANNEL_NOT_EXIST = new Response("渠道商不存在",301,1);

        Response PASSWORD_NULL = new Response("未设置提现密码",302,1);

        Response MONEY_ERROR = new Response("提现金额有误，请重试",302,1);

        Response IS_WITHDRAWAL_NO = new Response("当前账户存在冻结金，不能提现",302,1);
    }

    // ------------------------------------------- 审核模块 返回信息 ---------------------------------
    public interface AuditResp {
        Response PARAM_ERROR = new Response("参数错误",401,1);

        Response AUDIT_NOT_EXIST = new Response("审核信息不存在",402,1);

        Response COMMODITY_NOT_EXIST = new Response("商品信息不存在",302,1);

        Response IS_WITHDRAWAL_NO = new Response("当前账户存在冻结金，不能提现",302,1);
    }

    // ------------------------------------------- 优惠券模块 返回信息 ---------------------------------
    public interface CouponResp {

        Response ACT_NOT_EXIST = new Response("当前活动不存在,立即下载吃豆养车APP参与其他活动吧！",502,1);

        Response ACT_EXPIRED = new Response("对不起，活动已结束，立即下载吃豆养车APP参与其他活动吧！",503,1);

        Response ACT_NOT_SEND = new Response("没有可领取的优惠券，立即下载吃豆养车APP参与其他活动吧！",503,1);
    }


    public static class Response {

        public String Msg;

        public int Code;

        //  1. 系统提示  2. 前端页面提示
        public int Type;


        public Response(String Msg, Integer Code, Integer Type) {
            this.Msg = Msg;
            this.Code = Code;
            this.Type = Type;
        }
    }



}
